package com.atguigu.spzx.cloud.order.fegin;

import com.atguigu.spzx.cloud.order.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "spzx-cloud-user")
public interface UserFeignClient {
    @GetMapping(value = "/api/user/findUserByUserId/{userId}")
    public User findUserByUserId(@PathVariable("userId") Long userId);
}
